package com.aji.controller;

import com.aji.entity.Rec;
import com.aji.result.Result;
import com.aji.service.RecService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/rec")
@CrossOrigin
@Api(tags = "识别状态数据管理")
public class RecController {
    @Autowired
    RecService recService;
    @ApiOperation("查询 识别状态，所有")
    @GetMapping
    private Result selectAll(){
        List<Rec> recList = recService.selectAll();
        return Result.success(recList);
    }
}
